<?php

use yii\db\Migration;

/**
 * Handles the dropping of table `{{%own_number_unique_from_contract}}`.
 */
class m221130_143228_drop_own_number_unique_from_contract_table extends Migration
{
    /**
     * {@inheritdoc}
     */
    public function safeUp()
    {
        $this->dropIndex('own_number', 'contract');
    }

    /**
     * {@inheritdoc}
     */
    public function safeDown()
    {
        $this->createIndex('own_number', 'contract', 'own_number', $unique = true );
    }
}
